Result: fail
Detail | Value |
---|---|
Returncode | 1 |
Time | 0:00:00.315497 |
Stdout |
Output v[0].a element 0: expected 1, got -858993460 Output v[0].a element 1: expected 11, got -858993460 Output v[0].b element 0: expected 2, got -858993460 Output v[0].b element 1: expected 12, got -858993460 Output v[0].b element 2: expected 22, got -858993460 Output v[1].a element 0: expected 101, got -858993460 Output v[1].a element 1: expected 111, got -858993460 Output v[1].b element 0: expected 102, got -858993460 Output v[1].b element 1: expected 112, got -858993460 Output v[1].b element 2: expected 122, got -858993460 Output v[2].a element 0: expected 201, got -858993460 Output v[2].a element 1: expected 211, got -858993460 Output v[2].b element 0: expected 202, got -858993460 Output v[2].b element 1: expected 212, got -858993460 Output v[2].b element 2: expected 222, got -858993460 Output v[3].a element 0: expected 301, got -858993460 Output v[3].a element 1: expected 311, got -858993460 Output v[3].b element 0: expected 302, got -858993460 Output v[3].b element 1: expected 312, got -858993460 Output v[3].b element 2: expected 322, got -858993460 Vertex shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) DIR Blk { flat TYPE NAME; } blk #define VARYING(NAME) blk.NAME struct S { int[2] a; int[3] b; }; in vec4 pos; DECLARE_VARYING(out, S[4], v); void main() { gl_Position = pos; for (int i = 0; i < 4; i++) { for (int j = 0; j < 3; j++) { if (j < 2) VARYING(v)[i].a[j] = 100 * i + 10 * j + 1; if (j < 3) VARYING(v)[i].b[j] = 100 * i + 10 * j + 2; } } } Fragment shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) DIR Blk { flat TYPE NAME; } blk #define VARYING(NAME) blk.NAME struct S { int[2] a; int[3] b; }; DECLARE_VARYING(in, S[4], v); out vec4 color; void main() { bool pass = true; for (int i = 0; i < 4; i++) { for (int j = 0; j < 3; j++) { if (j < 2 && VARYING(v)[i].a[j] != 100 * i + 10 * j + 1) pass = false; if (j < 3 && VARYING(v)[i].b[j] != 100 * i + 10 * j + 2) pass = false; } } if (pass) color = vec4(0.0, 1.0, 0.0, 1.0); else color = vec4(1.0, 0.0, 0.0, 1.0); } |
Stderr |
SWR detected AVX2 vert shader 0x7f0611ca4000 frag shader 0x7f0611ca2000 vert shader 0x7f0611ca0000 frag shader 0x7f0611c9e000 so shader 0x7f0611c9c000 fetch shader 0x7f0611c9a000 SWR destroy screen! |
Environment |
PIGLIT_SOURCE_DIR="/home/ilia/src/piglit" PIGLIT_PLATFORM="mixed_glx_egl" |
Command | /home/ilia/src/piglit/bin/ext_transform_feedback-structs array-struct-whole-array run interface -auto -fbo |
dmesg |